<?php

//require_once  __DIR__ . '/includes/authenticate.php';

if(isset($_POST['noteid'])){

$noteID = $_POST['noteid'];
$category = $_POST['category'];	
$content = $_POST['content'];
$date = $_POST['date'];		

include_once './db_bb_connect.php';

$sql = "UPDATE profiles
SET category = '$category', content = '$content', date = '$date'
WHERE ID = '$noteID'";

$db->query($sql);



}

?>